function route(pathname,handle,response,postData){
	console.log("About to route a require for " + pathname);
	if(typeof handle[pathname] == 'function'){
		handle[pathname](response , postData);
	}else{
		console.log("No request handle found for " + pathname);
		
		response.writeHeader(404, {"Content-Type" : "text/plain"});
		response.write("404 Not Found");
		response.end();
	}
}

exports.route = route;
